﻿<UserControl x:Class="WPFDemo.PopUpUserControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300" Width="500" Loaded="UserControl_Loaded" >
    <Grid Name="PopUpUserDescriptionGrid" Background="{DynamicResource StandardBackground}" >
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>
        <TextBlock Margin="10" TextWrapping="Wrap" VerticalAlignment="Center"  >
                        <Run Text="     ...The control is now popped up and the desired portion of the background application (as specified in the Initialize() method) is blocked out." />
                        <LineBreak />
                        <Run Text="     To exit the pop-up, just call the Collapse() method on the ScalingModal instance." />
                        <LineBreak />
                        <Run Text="     The Scaling Modal Control contains many different animations that can be set at the instance by property or overridden in the Expand() and Collapse() calls." />
                        <LineBreak />
                        <Run Text="     The difference between the Silverlight and WPF versions of the ScalingModalControl are from differences in the abilities between of the two frameworks:" />
                        <LineBreak />
                        <Run Text="         *The WPF version can disable an underlying Panel to prevent keyboard access when the pop-up control is expanded; the Silverlight version can only disable a ContentControl (the Panel class does not have the IsEnabled setter/getter in Silverlight)" />
                        <LineBreak />
                        <Run Text="         *The WPF version assigns focus to the pop-up control after being popped-up; the Silverlight version does not (there is no Focus() method for FrameworkElements in Silverlight)" />
        </TextBlock>
        <Button Name="CollapseButton" Grid.Row="1" Click="CollapseButton_Click" Content="Collapse" Width="150" Height="30" IsDefault="True" IsCancel="True" />

        <Border Grid.ColumnSpan="1" Grid.RowSpan="2" BorderThickness="3" BorderBrush="{StaticResource StandardBorderBrush}"  />
    </Grid>
</UserControl>
